$OpenBSD: patch-src_display_c,v 1.1 2013/11/26 11:59:32 fgsch Exp $
--- src/display.c.orig	Wed Sep 29 13:39:49 2010
+++ src/display.c	Sat Mar 16 11:27:12 2013
@@ -1106,9 +1106,10 @@ updateModifierMappings (CompDisplay *d)
 	    index = 0;
 	    do
 	    {
-		keysym = XKeycodeToKeysym (d->display,
-					   d->modMap->modifiermap[i],
-					   index++);
+		keysym = XkbKeycodeToKeysym (d->display,
+					     d->modMap->modifiermap[i],
+					     0,
+					     index++);
 	    } while (!keysym && index < keysymsPerKeycode);
 
 	    if (keysym)
